﻿using System.Collections.Generic;

namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 功率档
    /// </summary>
    public class VBinningPower : BaseVModel
    {
        private string _nameplateModel;
        private string _schemaName;
        private string _pmax;
        private string _voc;
        private string _isc;
        private string _vmpp;
        private string _impp;
        private string _ff;

        #region Public Property
        /// <summary>
        /// 铭牌型号
        /// </summary>
        public string NameplateModel
        {
            get { return string.IsNullOrWhiteSpace(_nameplateModel) ? string.Empty : _nameplateModel; }
            set { _nameplateModel = value; }
        }

        ///<Summary>
        /// 分档方案ID
        ///</Summary>
        public int SchemaId { get; set; }

        ///<Summary>
        /// 额定功率
        ///</Summary>
        public decimal Power { get; set; }

        ///<Summary>
        /// 功率下限
        ///</Summary>
        public decimal PowerMin { get; set; }

        ///<Summary>
        /// 功率上限
        ///</Summary>
        public decimal PowerMax { get; set; }

        ///<Summary>
        /// Pmax
        ///</Summary>
        public string Pmax
        {
            get { return string.IsNullOrWhiteSpace(_pmax) ? string.Empty : _pmax; }
            set { _pmax = value; }
        }

        ///<Summary>
        /// Voc
        ///</Summary>
        public string Voc
        {
            get { return string.IsNullOrWhiteSpace(_voc) ? string.Empty : _voc; }
            set { _voc = value; }
        }

        ///<Summary>
        /// Isc
        ///</Summary>
        public string Isc
        {
            get { return string.IsNullOrWhiteSpace(_isc) ? string.Empty : _isc; }
            set { _isc = value; }
        }

        ///<Summary>
        /// Vmpp
        ///</Summary>
        public string Vmpp
        {
            get { return string.IsNullOrWhiteSpace(_vmpp) ? string.Empty : _vmpp; }
            set { _vmpp = value; }
        }

        ///<Summary>
        /// Impp
        ///</Summary>
        public string Impp
        {
            get { return string.IsNullOrWhiteSpace(_impp) ? string.Empty : _impp; }
            set { _impp = value; }
        }

        ///<Summary>
        /// FF
        ///</Summary>
        public string FF
        {
            get { return string.IsNullOrWhiteSpace(_ff) ? string.Empty : _ff; }
            set { _ff = value; }
        }
        #endregion

        ///<Summary>
        /// 分档方案名称
        ///</Summary>
        public string SchemaName
        {
            get { return string.IsNullOrWhiteSpace(_schemaName) ? string.Empty : _schemaName; }
            set { _schemaName = value; }
        }

        /// <summary>
        /// 电流档列表
        /// </summary>
        public List<VBinningCurrent> Currents { get; set; } = new List<VBinningCurrent>();
    }
}
